import request from "@/utils/request";
// 获取轮播图数据
export const getBannerService = (params = {}) => {
  const { distributionSite ='1' } = params;
  return request({
    url: "/home/banner",
    params:{
      distributionSite
    }
  })
};

// 获取新鲜好物
export const getNewGoodsService = () => {
  return request.get("/home/new");
};

// 人气推荐
export const getHotGoodsService = () => {
  return request.get("/home/hot");
};

// 获取所有商品
export const getAllGoodsService = () => {
  return request.get("/home/goods");
};